|
|
|
|
|
|
|
Notice how you have all the data fields, as well as a data control and command buttons. This is a quick and easy way to build forms for data entry! |
|
|
|
|
|
|
|
|
The Global Replace menu option enables you to perform a mass update of existing tables, which comes in handy when you need to zero values in test data or need to perform mass updates on a database. |
|
|
|
|
|
|
|
|
For this example, set all the fields in a data table to the same value. Load the BOOKS5.MDB database (TYSDBVB5\SOURCE\DATA), and then select Utility | Global Replace . . . from the menu. You see the Global Replace dialog box, as shown in Figure 7.38. |
|
|
|
|
|
|
|
|
Figure 7.38.
Entering a Global Replace command. |
|
|
|
|
|
|
|
|
Select the NewAuthors table and the Contracted field. Set the Replace With value to zero and leave the Criteria field blank. When you click the OK button, Visdata resets all the NewAuthors.Contracted fields to zero. You can limit the number of records affected by the Global Replace command by entering an appropriate logical statement in the Criteria box. For example, if you wanted to update only the records that have an Au_ID value of 30, you could enter the following line in the Criteria box: |
|
|
|
|
|
|
|
|
We cover Criteria more in depth in the lesson on Day 8, and you'll learn more about the global replace command in the lesson on Day 14, ''Error Handling in Visual Basic 5.0." |
|
|
|
|
|
|
|
|
Visdata allows you to attach external database files to an existing Microsoft Access (Jet) format database. When you create an attachment, you actually create a link between your own Microsoft Access database and another database. You don't actually import any data from the |
|
|
|
|
|